<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>ajax test</title>
<script src="http://localhost:8080/CourseSupport/js/jquery-1.11.3.min.js" ></script>
</head>
<body>
<center>test</center>
<button onclick="addClass()">添加班級</button><br>
<button onclick="getList()">点击添加</button><br>
</center>
</body>
<script>

 function getList(){
	 var json={
			 classId:"1",
			 classType:"MANAGETEAM"
	 }
	 $.post("http://localhost:8080/CourseSupport/cscontrol/ajaxListDate", {
			data : JSON.stringify(json)
		}, function(json) {
			alert(JSON.stringify(json));
		});
 }


</script>
</html>